home *** CD-ROM | disk | FTP | other *** search
/ Software of the Month Club 2000 October / Software of the Month - Ultimate Collection Shareware 277.iso / pc / PROGRAMS / UTILITY / WINLINUX / DATA1.CAB / programs_-_include / ASM-ARM / ARCH-RPC / SYSTEM.H < prev    next >
C/C++ Source or Header  |  1999-09-17  |  503b  |  24 lines

  1. /*
  2.  * linux/include/asm-arm/arch-rpc/system.h
  3.  *
  4.  * Copyright (c) 1996 Russell King
  5.  */
  6. #ifndef __ASM_ARCH_SYSTEM_H
  7. #define __ASM_ARCH_SYSTEM_H
  8.  
  9. #include <asm/proc-fns.h>
  10.  
  11. #define arch_reset(mode) {                        \
  12.     extern void ecard_reset (int card);                \
  13.     outb (0, IOMD_ROMCR0);                        \
  14.     ecard_reset(-1);                        \
  15.     cli();                                \
  16.     __asm__ __volatile__("msr  spsr, r1;"                \
  17.                  "mcr  p15, 0, %0, c1, c0, 0;"        \
  18.                  "movs pc, #0"                \
  19.              :                         \
  20.              : "r" (processor.u.armv3v4.reset()));        \
  21.     }
  22.  
  23. #endif
  24.